package com.ruoyi.web.core.utils;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.util.Objects;

/* loaded from: WxAuth.class */
public class WxAuth {
    private String encryptedData;
    private String sessionId;
    private String iv;
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long   shopId;
    private String openid;
    private String phonenumber;

    public WxAuth() {
    }

    public WxAuth(String encryptedData, String sessionId, String iv, Long shopId, String openid, String phonenumber) {
        this.encryptedData = encryptedData;
        this.sessionId = sessionId;
        this.iv = iv;
        this.shopId = shopId;
        this.openid = openid;
        this.phonenumber = phonenumber;
    }

    public boolean equals(Object o) {
        if (o == this) {
            return true;
        }
        if (!(o instanceof WxAuth)) {
            return false;
        }
        WxAuth other = (WxAuth) o;
        if (!other.canEqual(this)) {
            return false;
        }
        Object this$shopId  = getShopId();
        Object other$shopId = other.getShopId();
        if (this$shopId == null) {
            if (other$shopId != null) {
                return false;
            }
        }
        else if (!this$shopId.equals(other$shopId)) {
            return false;
        }
        Object this$encryptedData  = getEncryptedData();
        Object other$encryptedData = other.getEncryptedData();
        if (this$encryptedData == null) {
            if (other$encryptedData != null) {
                return false;
            }
        }
        else if (!this$encryptedData.equals(other$encryptedData)) {
            return false;
        }
        Object this$sessionId  = getSessionId();
        Object other$sessionId = other.getSessionId();
        if (this$sessionId == null) {
            if (other$sessionId != null) {
                return false;
            }
        }
        else if (!this$sessionId.equals(other$sessionId)) {
            return false;
        }
        Object this$iv  = getIv();
        Object other$iv = other.getIv();
        if (this$iv == null) {
            if (other$iv != null) {
                return false;
            }
        }
        else if (!this$iv.equals(other$iv)) {
            return false;
        }
        Object this$openid  = getOpenid();
        Object other$openid = other.getOpenid();
        if (this$openid == null) {
            if (other$openid != null) {
                return false;
            }
        }
        else if (!this$openid.equals(other$openid)) {
            return false;
        }
        Object this$phonenumber  = getPhonenumber();
        Object other$phonenumber = other.getPhonenumber();
        return Objects.equals(this$phonenumber, other$phonenumber);
    }

    protected boolean canEqual(Object other) {
        return other instanceof WxAuth;
    }

    public int hashCode() {
        Object $shopId        = getShopId();
        int    result         = (59) + ($shopId == null ? 43 : $shopId.hashCode());
        Object $encryptedData = getEncryptedData();
        int    result2        = (result * 59) + ($encryptedData == null ? 43 : $encryptedData.hashCode());
        Object $sessionId     = getSessionId();
        int    result3        = (result2 * 59) + ($sessionId == null ? 43 : $sessionId.hashCode());
        Object $iv            = getIv();
        int    result4        = (result3 * 59) + ($iv == null ? 43 : $iv.hashCode());
        Object $openid        = getOpenid();
        int    result5        = (result4 * 59) + ($openid == null ? 43 : $openid.hashCode());
        Object $phonenumber   = getPhonenumber();
        return (result5 * 59) + ($phonenumber == null ? 43 : $phonenumber.hashCode());
    }

    public String toString() {
        return "WxAuth(encryptedData=" + getEncryptedData() + ", sessionId=" + getSessionId() + ", iv=" + getIv() + ", shopId=" + getShopId() + ", openid=" + getOpenid() + ", phonenumber=" + getPhonenumber() + ")";
    }

    public String getEncryptedData() {
        return this.encryptedData;
    }

    public void setEncryptedData(String encryptedData) {
        this.encryptedData = encryptedData;
    }

    public String getSessionId() {
        return this.sessionId;
    }

    public void setSessionId(String sessionId) {
        this.sessionId = sessionId;
    }

    public String getIv() {
        return this.iv;
    }

    public void setIv(String iv) {
        this.iv = iv;
    }

    public Long getShopId() {
        return this.shopId;
    }

    @JsonFormat(shape = JsonFormat.Shape.STRING)
    public void setShopId(Long shopId) {
        this.shopId = shopId;
    }

    public String getOpenid() {
        return this.openid;
    }

    public void setOpenid(String openid) {
        this.openid = openid;
    }

    public String getPhonenumber() {
        return this.phonenumber;
    }

    public void setPhonenumber(String phonenumber) {
        this.phonenumber = phonenumber;
    }
}
